package com.yangyouli.unity_demo_server.util;

import java.util.List;

/**
 * 页码对象，P为参数类型，T为数据类型
 * @author 24279
 *
 * @param <P>
 * @param <T>
 */
public class PageWithData<P, T> extends Page<P>{
	private List<T> data;

	public PageWithData () {}
	
	public PageWithData(int currentPage, int dataNumPerPage) {
		super(currentPage, dataNumPerPage);
	}
	
	public PageWithData(P param, int currentPage, int dataNumPerPage) {
		super(param, currentPage, dataNumPerPage);
	}
	
	public List<T> getData() {
		return data;
	}

	public void setData(List<T> data) {
		this.data = data;
	}

	@Override
	public String toString() {
		return "PageWithData [ " + super.toString() + " data=" + data + "]";
	}
}
